package com.hsb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {
   private Integer id;
   private String name;
   private Integer count;
   private String detail;
   private String createTime;
   private String updateTime;

   public Book(Integer id, String name, Integer count, String detail) {
      this.id = id;
      this.name = name;
      this.count = count;
      this.detail = detail;
   }

   public Book(String name, Integer count, String detail) {
      this.name = name;
      this.count = count;
      this.detail = detail;
   }
}